export default function(size) {
  const clientHeight = document.body.clientHeight
  const height = 1080
  let fontSize = size / height * clientHeight
  if(fontSize < 12) {
    fontSize = 12
  }
  return  parseInt(fontSize)
}